#pragma once
#include <QEvent>

const QEvent::Type MyEventType = static_cast<QEvent::Type>(QEvent::User + 2);

enum myEvent
{
	left = 1,
	right  =2,
	up = 3,
	down = 4,
	esc = 5,
	enter = 6
};

class MyEvent :
    public QEvent
{
public:
	MyEvent(int keyValue) : QEvent(MyEventType),m_keyVal(keyValue) {};
	int getKeyValue()
	{
		return m_keyVal;
	}
private:
	int m_keyVal = 0;
};

